package com.wowo.aop.transaction;

public class Bobobo {
    public static void main(String[] args) {

        int[] arrays = {21, 32, 23, 23, 45, 657, 5, 78, 232, 234, 45, 643, 223, 4, 45, 64, 2, 53};
        for(int i=0;i<arrays.length;i++){
            for(int j=0;j<arrays.length-i-1;j++){
                if(arrays[j]>arrays[j+1]){
                    int count = 0;
                    count=arrays[j+1];
                    arrays[j+1]=arrays[j];
                    arrays[j]=count;
                }
            }
        }
        for(int i=0;i<arrays.length;i++) {
            System.out.println(arrays[i]);
        }
    }
}
